package com.xialinrui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xialinrui.entity.GratefulRecord;
import com.xialinrui.mapper.GratefulRecordMapper;
import com.xialinrui.service.GratefulRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xialinrui
 */
@Service
public class GratefulRecordServiceImpl extends ServiceImpl<GratefulRecordMapper, GratefulRecord> implements GratefulRecordService {
    @Resource
    private GratefulRecordMapper gratefulRecordMapper;

    @Override
    public void addOneInstant(GratefulRecord gratefulRecord) {
        gratefulRecordMapper.insert(gratefulRecord);
    }

    @Override
    public void delete(List<Long> ids) {
        gratefulRecordMapper.deleteBatchIds(ids);
    }
}
